setInfos(3, "Damian", "Cyber Master Damian will take care of you - a big 24/7 script including permissions, punishments...", "Indica, Doti", "started", 0xFFFFFF, "en", ["anal", "long", "exhibition", "femaledom", "formale", "humiliation", "urine", "transgender", "options", "spanking", "shopping", "toys", "sperm"]);


// CyberMistress - nightlyritual
//
def endReached = false
def block = "begin"
if(loadString("cybermistress.wanted_start_block")!=null) {
	block = loadString("cybermistress.wanted_start_block")
	save("cybermistress.wanted_start_block",null)
}
def seed = 0
def newBlock = block
while(!endReached && newBlock!=null) {
block = null
switch(newBlock) {
case "begin":
	if(getRandom(2)==0)
		setImage("jewell/assignments.jpg")
	else
		setImage("jewell/assignments2.jpg")
	def messages0 = ["You want to go to sleep my little slave? Very well.","Aaw, is my little slave tired? Very well sissy, you may go to bed now.","You want to sleep again you lazy slut? I suppose so."]
	show(messages0[getRandom(3)])
	wait(7)
	block = "begin2"
	break

case "begin2":
	if(getBoolean("Tell me "+loadString("intro.name")+", do you wish to please your Master before going to bed?"+
			"\n\n<em>(You have "+loadInteger("cybermistress.points")+" points)</em>"))
		block = "picktoy"
	else
		block = "badslave"
	break

case "badslave":
	def messages2 = ["I am disappointed in you "+loadString("intro.name")+". I'll have to bring you to a deeper level of submission tomorrow.","I am disappointed in you "+loadString("intro.name")+". I'll have to torture you extra hard tomorrow to compensate."]
	show(messages2[getRandom(2)])
	wait(5)
	block = "finish"
	break

case "picktoy":
	show("Hmmmm...")
	wait(1)
	def nForRandom = Calendar.getInstance().get(Calendar.DAY_OF_YEAR)
	seed++
	switch((seed*17+nForRandom*13 + nForRandom * nForRandom+nForRandom*seed)%18) {
	case 0: block = "buttplug"; break
	case 1: block = "panties"; break
	case 2: block = "bra"; break
	case 3: block = "diaper"; break
	case 4: block = "blindfold"; break
	case 5: block = "chastity"; break
	case 6: block = "collar"; break
	case 7: block = "nightie"; break
	case 8: block = "nightie"; break
	case 9: block = "leotard"; break
	case 10: block = "stockings"; break
	case 11: block = "thong"; break
	case 12: block = "spreader"; break
	case 13: block = "pantyhose"; break
	case 14: block = "floor"; break
	case 15: block = "naked"; break
	case 16: block = "clock-ritual"; break
	case 17: block = "clock-edge"; break
	}
	break

case "buttplug":
	if(loadFirstTrue("toys.buttplug","toys.inflatable_buttplug","toys.vibrating_buttplug")==null) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +5+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points)\n"+"You will wear a butt plug in your ass tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "bikini":
	if(loadBoolean("clothes.bikini")!=true && loadBoolean("clothes.monokini")) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +3+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points)\n"+"You will wear a bikini (or a monokini) to bed tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "panties":
	if(loadBoolean("clothes.panties")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +2+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points)\n"+"You will wear panties to bed tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "bra":
	if(loadBoolean("clothes.bra")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +3+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points)\n"+"You will wear a bra to bed tonight")
	showButton("Thank you Master")
	block = "outro"
	break

case "diaper":
	if(loadBoolean("toys.diaper")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +5+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points)\n"+"You will wear a diaper to bed tonight. You are not allowed to get up to use the washroom until morning.")
	showButton("Thank you Master")
	block = "outro"
	break

case "blindfold":
	if(loadBoolean("toys.blindfold")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +4+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points)\n"+"You will wear a blindfold to bed tonight. You may not remove it until morning. If you remove it for any reason, you may not go back to sleep tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "chastity":
	if(loadBoolean("toys.chastity_belt")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +3+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points)\n"+"You will wear a chastity belt to bed tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "collar":
	if(loadBoolean("toys.dog_collar")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +2+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points)\n"+"You will wear a collar to bed tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "nightie":
	if(loadBoolean("clothes.nightie")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +3+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points)\n"+"You will wear a nightie or a baby doll to bed tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "leotard":
	if(loadBoolean("clothes.leotard")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +3+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points now)\n"+"You will wear a body stocking or a leotard to bed tonight.")
	showButton("Thank you Master")
	block = "outro"
	break	
	
case "spreader":
	if(loadBoolean("clothes.spreader_bar")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +5+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points now)\n"+"You will wear a spreader bar to bed tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "pantyhose":
	if(loadBoolean("clothes.pantyhose")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +3+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points now)\n"+"You will wear a pair of pantyhose to bed tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "stockings":
	if(loadBoolean("clothes.stockings")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +3+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points now)\n"+"You will wear stockings to bed tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "thong":
	if(loadBoolean("clothes.thong")!=true && loadBoolean("clothes.monokini")!=true) {
		block="picktoy"
		break
	}
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +3+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points now)\n"+"You will wear a thong to bed tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "floor":
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +6+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points now)\n"+"You will sleep on the floor tonight.")
	showButton("Thank you Master")
	block = "outro"
	break

case "naked":
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +3+loadInteger("cybermistress.points"))
	show("(You've got "+loadInteger("cybermistress.points")+" points now)\n"+"You will sleep naked tonight. Don't catch a cold.")
	showButton("Thank you Master")
	block = "outro"
	break
	
case "clock-ritual":
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +5+loadInteger("cybermistress.points"))
	def hourNow = Calendar.getInstance().get(Calendar.HOUR_OF_DAY)
	show("(You've got "+loadInteger("cybermistress.points")+" points now)\n"+"You will set your clock to "+(2+hourNow)+", when I'll come back from a party.\n"+
				"You'll have to wake up, come to me, I'll give you your morning ritual, or you'll have to ask for another nightly ritual. Then back to sleep")
	showButton("Thank you Master")
	block = "outro"
	break

case "clock-edge":
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", +5+loadInteger("cybermistress.points"))
	def hourNow = Calendar.getInstance().get(Calendar.HOUR_OF_DAY)
	show("(You've got "+loadInteger("cybermistress.points")+" points now)\n"+"You will set your clock to "+(2+hourNow)+".\n"+
				"You'll have to wake up, edge "+(getRandom(2)+2)+" times, then back to sleep !")
	showButton("Thank you Master")
	block = "outro"
	break

case "outro":
	def messages18 = ["Sweet dreams my darling pet.","Nightie night my helpless slave.","Have a good sleep my adorable little sissy-girl.","Sweet dreams my filthy little slut."]
	show(messages18[getRandom(4)])
	wait(3)
	block = "finish"
	break

case "finish":
	endReached = true
	break

default:
	show("Unfinished ? ("+block+")")
	endReached = true
} // end switch 
newBlock = block
} // end while

// This script, from http://ss.deviatenow.com, is protected by this licence : 
// CC by-NC, see http://creativecommons.org/licenses/by-nc/3.0/
